package cn.xyinping.hrm;

import cn.xyinping.hrm.exception.MyExceptionHander;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;

/**
 * @author 27266
 * @desrciption 课程中心
 * @date 2021/11/26
 */
@SpringBootApplication
@EnableEurekaClient
@Import({MyExceptionHander.class})
// 开启springCaching
@EnableCaching
// 开启feign
@EnableFeignClients({"cn.xyinping.hrm.feign"})
public class CourseApplication {
    public static void main(String[] args) {
        SpringApplication.run(CourseApplication.class);
    }
}
